package pojo;

public class User {

    String username;
    String password;
    int age;


    //添加setXXX方法,springmvc调用set方法

    public String getUsername() {

        return username;
    }

    public String getPassword() {

        return password;
    }

    public int getAge() {

        return age;
    }

    public void setUsername(String username) {

        this.username = username;
    }

    public void setPassword(String password) {

        this.password = password;
    }

    public void setAge(int age) {

        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", age=" + age +
                '}';
    }
}
